﻿namespace Sidvall.AuthorizationManager.UI.Entities
{
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
    public sealed partial class AuthorizationScopeResourceAction : global::Sidvall.AuthorizationManager.UI.Entities.Core.BusinessBase, global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction
    {
        #region Business Members

        #region AccessLevel

        private global::Sidvall.AuthorizationManager.Data.ResourceAccessLevel _AccessLevel = global::Sidvall.AuthorizationManager.Data.ResourceAccessLevel.Public;
        partial void OnBeforeAccessLevelPropertyGet(Sidvall.Business.PropertyEventData<global::Sidvall.AuthorizationManager.Data.ResourceAccessLevel> eventData);
        partial void OnBeforeAccessLevelPropertyChanged(Sidvall.Business.PropertyChangeEventData<global::Sidvall.AuthorizationManager.Data.ResourceAccessLevel> eventData);
        partial void OnAfterAccessLevelPropertyChanged();
        public global::Sidvall.AuthorizationManager.Data.ResourceAccessLevel AccessLevel
        {
            get
            {
                Sidvall.Business.PropertyEventData<global::Sidvall.AuthorizationManager.Data.ResourceAccessLevel> eventData = new Sidvall.Business.PropertyEventData<global::Sidvall.AuthorizationManager.Data.ResourceAccessLevel>(_AccessLevel);
                OnBeforeAccessLevelPropertyGet(eventData);
                return eventData.Value;
            }
            set
            {
                Sidvall.Business.PropertyChangeEventData<global::Sidvall.AuthorizationManager.Data.ResourceAccessLevel> eventData = new Sidvall.Business.PropertyChangeEventData<global::Sidvall.AuthorizationManager.Data.ResourceAccessLevel>(value, _AccessLevel);
                OnBeforeAccessLevelPropertyChanged(eventData);
                if (!eventData.Cancel)
                {
                    LoadInstanceField("AccessLevel", eventData.Value, true, true, true);
                    OnAfterAccessLevelPropertyChanged();
                }
            }
        }

        #endregion
        #region Actions

        private string _Actions = string.Empty;
        partial void OnBeforeActionsPropertyGet(Sidvall.Business.PropertyEventData<string> eventData);
        partial void OnBeforeActionsPropertyChanged(Sidvall.Business.PropertyChangeEventData<string> eventData);
        partial void OnAfterActionsPropertyChanged();
        public string Actions
        {
            get
            {
                Sidvall.Business.PropertyEventData<string> eventData = new Sidvall.Business.PropertyEventData<string>(_Actions);
                OnBeforeActionsPropertyGet(eventData);
                return eventData.Value;
            }
            set
            {
                Sidvall.Business.PropertyChangeEventData<string> eventData = new Sidvall.Business.PropertyChangeEventData<string>(value, _Actions);
                OnBeforeActionsPropertyChanged(eventData);
                if (!eventData.Cancel)
                {
                    LoadInstanceField("Actions", eventData.Value, true, true, true);
                    OnAfterActionsPropertyChanged();
                }
            }
        }

        #endregion
        #region AuthorizationScopeId

        private long _AuthorizationScopeId = 0L;
        partial void OnBeforeAuthorizationScopeIdPropertyGet(Sidvall.Business.PropertyEventData<long> eventData);
        partial void OnBeforeAuthorizationScopeIdPropertyChanged(Sidvall.Business.PropertyChangeEventData<long> eventData);
        partial void OnAfterAuthorizationScopeIdPropertyChanged();
        public long AuthorizationScopeId
        {
            get
            {
                Sidvall.Business.PropertyEventData<long> eventData = new Sidvall.Business.PropertyEventData<long>(_AuthorizationScopeId);
                OnBeforeAuthorizationScopeIdPropertyGet(eventData);
                return eventData.Value;
            }
            set
            {
                Sidvall.Business.PropertyChangeEventData<long> eventData = new Sidvall.Business.PropertyChangeEventData<long>(value, _AuthorizationScopeId);
                OnBeforeAuthorizationScopeIdPropertyChanged(eventData);
                if (!eventData.Cancel)
                {
                    LoadInstanceField("AuthorizationScopeId", eventData.Value, true, true, true);
                    OnAfterAuthorizationScopeIdPropertyChanged();
                }
            }
        }

        #endregion
        #region AuthorizationScopeResourceActionId

        private System.Nullable<long> _AuthorizationScopeResourceActionId = null;
        partial void OnBeforeAuthorizationScopeResourceActionIdPropertyGet(Sidvall.Business.PropertyEventData<System.Nullable<long>> eventData);
        partial void OnBeforeAuthorizationScopeResourceActionIdPropertyChanged(Sidvall.Business.PropertyChangeEventData<System.Nullable<long>> eventData);
        partial void OnAfterAuthorizationScopeResourceActionIdPropertyChanged();
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
        public System.Nullable<long> AuthorizationScopeResourceActionId
        {
            get
            {
                Sidvall.Business.PropertyEventData<System.Nullable<long>> eventData = new Sidvall.Business.PropertyEventData<System.Nullable<long>>(_AuthorizationScopeResourceActionId);
                OnBeforeAuthorizationScopeResourceActionIdPropertyGet(eventData);
                return eventData.Value;
            }
            internal set
            {
                Sidvall.Business.PropertyChangeEventData<System.Nullable<long>> eventData = new Sidvall.Business.PropertyChangeEventData<System.Nullable<long>>(value, _AuthorizationScopeResourceActionId);
                OnBeforeAuthorizationScopeResourceActionIdPropertyChanged(eventData);
                if (!eventData.Cancel)
                {
                    LoadInstanceField("AuthorizationScopeResourceActionId", eventData.Value, true, true, true);
                    OnAfterAuthorizationScopeResourceActionIdPropertyChanged();
                }
            }
        }

        #endregion
        #region IsEnabled

        private bool _IsEnabled = false;
        partial void OnBeforeIsEnabledPropertyGet(Sidvall.Business.PropertyEventData<bool> eventData);
        partial void OnBeforeIsEnabledPropertyChanged(Sidvall.Business.PropertyChangeEventData<bool> eventData);
        partial void OnAfterIsEnabledPropertyChanged();
        public bool IsEnabled
        {
            get
            {
                Sidvall.Business.PropertyEventData<bool> eventData = new Sidvall.Business.PropertyEventData<bool>(_IsEnabled);
                OnBeforeIsEnabledPropertyGet(eventData);
                return eventData.Value;
            }
            set
            {
                Sidvall.Business.PropertyChangeEventData<bool> eventData = new Sidvall.Business.PropertyChangeEventData<bool>(value, _IsEnabled);
                OnBeforeIsEnabledPropertyChanged(eventData);
                if (!eventData.Cancel)
                {
                    LoadInstanceField("IsEnabled", eventData.Value, true, true, true);
                    OnAfterIsEnabledPropertyChanged();
                }
            }
        }

        #endregion
        #region Resources

        private string _Resources = string.Empty;
        partial void OnBeforeResourcesPropertyGet(Sidvall.Business.PropertyEventData<string> eventData);
        partial void OnBeforeResourcesPropertyChanged(Sidvall.Business.PropertyChangeEventData<string> eventData);
        partial void OnAfterResourcesPropertyChanged();
        public string Resources
        {
            get
            {
                Sidvall.Business.PropertyEventData<string> eventData = new Sidvall.Business.PropertyEventData<string>(_Resources);
                OnBeforeResourcesPropertyGet(eventData);
                return eventData.Value;
            }
            set
            {
                Sidvall.Business.PropertyChangeEventData<string> eventData = new Sidvall.Business.PropertyChangeEventData<string>(value, _Resources);
                OnBeforeResourcesPropertyChanged(eventData);
                if (!eventData.Cancel)
                {
                    LoadInstanceField("Resources", eventData.Value, true, true, true);
                    OnAfterResourcesPropertyChanged();
                }
            }
        }

        #endregion
        #region SubActions

        private string _SubActions = string.Empty;
        partial void OnBeforeSubActionsPropertyGet(Sidvall.Business.PropertyEventData<string> eventData);
        partial void OnBeforeSubActionsPropertyChanged(Sidvall.Business.PropertyChangeEventData<string> eventData);
        partial void OnAfterSubActionsPropertyChanged();
        public string SubActions
        {
            get
            {
                Sidvall.Business.PropertyEventData<string> eventData = new Sidvall.Business.PropertyEventData<string>(_SubActions);
                OnBeforeSubActionsPropertyGet(eventData);
                return eventData.Value;
            }
            set
            {
                Sidvall.Business.PropertyChangeEventData<string> eventData = new Sidvall.Business.PropertyChangeEventData<string>(value, _SubActions);
                OnBeforeSubActionsPropertyChanged(eventData);
                if (!eventData.Cancel)
                {
                    LoadInstanceField("SubActions", eventData.Value, true, true, true);
                    OnAfterSubActionsPropertyChanged();
                }
            }
        }

        #endregion
        #region ValidForResourceActionItems

        private bool _ValidForResourceActionItems = false;
        partial void OnBeforeValidForResourceActionItemsPropertyGet(Sidvall.Business.PropertyEventData<bool> eventData);
        partial void OnBeforeValidForResourceActionItemsPropertyChanged(Sidvall.Business.PropertyChangeEventData<bool> eventData);
        partial void OnAfterValidForResourceActionItemsPropertyChanged();
        public bool ValidForResourceActionItems
        {
            get
            {
                Sidvall.Business.PropertyEventData<bool> eventData = new Sidvall.Business.PropertyEventData<bool>(_ValidForResourceActionItems);
                OnBeforeValidForResourceActionItemsPropertyGet(eventData);
                return eventData.Value;
            }
            set
            {
                Sidvall.Business.PropertyChangeEventData<bool> eventData = new Sidvall.Business.PropertyChangeEventData<bool>(value, _ValidForResourceActionItems);
                OnBeforeValidForResourceActionItemsPropertyChanged(eventData);
                if (!eventData.Cancel)
                {
                    LoadInstanceField("ValidForResourceActionItems", eventData.Value, true, true, true);
                    OnAfterValidForResourceActionItemsPropertyChanged();
                }
            }
        }

        #endregion
        #region AuthorizationScope

        private AuthorizationScope _AuthorizationScope;
        partial void OnBeforeAuthorizationScopePropertyChanged(Sidvall.Business.PropertyChangeEventData<AuthorizationScope> eventData);
        partial void OnAfterAuthorizationScopePropertyChanged();
        public AuthorizationScope AuthorizationScope
        {
            get
            {
                return _AuthorizationScope;
            }
            set
            {
                Sidvall.Business.PropertyChangeEventData<AuthorizationScope> eventData = new Sidvall.Business.PropertyChangeEventData<AuthorizationScope>(value, _AuthorizationScope);
                OnBeforeAuthorizationScopePropertyChanged(eventData);
                if (!eventData.Cancel)
                {
                    LoadInstanceField("AuthorizationScope", eventData.Value, true, true, false);
                    OnAfterAuthorizationScopePropertyChanged();
                }
            }
        }

        #endregion
        #region AuthorizationScopeResourceActionClaims

        private AuthorizationScopeResourceActionClaimCollection _AuthorizationScopeResourceActionClaims;
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
        public AuthorizationScopeResourceActionClaimCollection AuthorizationScopeResourceActionClaims
        {
            get
            {
                return _AuthorizationScopeResourceActionClaims;
            }
            internal set
            {
                LoadInstanceField("AuthorizationScopeResourceActionClaims", value, true, false, false);
            }
        }

        #endregion
        #region DataRowContextStorageKey

        protected override string DataRowContextStorageKey
        {
            get
            {
                return global::Sidvall.AuthorizationManager.UI.SystemContext.Current.EntityFacade.AuthorizationScopeResourceActionManager.GetKey(this);
            }
        }

        #endregion
        #region DataRowIsValid

        public override bool DataRowIsValid(Sidvall.Data.BusinessRuleFilter filter)
        {
            return global::Sidvall.AuthorizationManager.UI.SystemContext.Current.EntityFacade.AuthorizationScopeResourceActionManager.DataRowIsValid(this, filter);
        }

        #endregion
        #region DataRowStateIsDirty

        public override bool DataRowStateIsDirty
        {
            get
            {
                return global::Sidvall.AuthorizationManager.UI.SystemContext.Current.EntityFacade.AuthorizationScopeResourceActionManager.DataRowStateIsDirty(this);
            }
        }

        #endregion

        #region LoadAuthorizationScopeResourceActionClaims

        public void LoadAuthorizationScopeResourceActionClaims(AuthorizationScopeResourceActionClaimCollection value)
        {
            LoadInstanceField("AuthorizationScopeResourceActionClaims", value, true, true, false);
        }

        #endregion
        #region LoadAuthorizationScopeResourceActionClaimsAsync

        public async System.Threading.Tasks.Task<AuthorizationScopeResourceActionClaimCollection> LoadAuthorizationScopeResourceActionClaimsAsync()
        {
            return await LoadAuthorizationScopeResourceActionClaimsAsync(false, true, null, null, null);
        }
        public async System.Threading.Tasks.Task<AuthorizationScopeResourceActionClaimCollection> LoadAuthorizationScopeResourceActionClaimsAsync(bool refresh, bool raisePropertyChanged, global::Sidvall.Data.FetchListCriteria<global::Sidvall.AuthorizationManager.Data.Fields.AuthorizationScopeResourceActionClaimField, global::Sidvall.AuthorizationManager.Data.Relations.AuthorizationScopeResourceActionClaimRelation> criteria, string strategyContext, global::Sidvall.Data.ObjectParameterCollection objectParameters)
        {
            await global::Sidvall.AuthorizationManager.UI.SystemContext.Current.DataPortal.AuthorizationScopeResourceActionManager.LoadAuthorizationScopeResourceActionClaimsAsync(this, refresh, raisePropertyChanged, criteria, strategyContext, objectParameters);

            return this.AuthorizationScopeResourceActionClaims;
        }

        #endregion
        #region LoadAuthorizationScopeAsync

        public async System.Threading.Tasks.Task<AuthorizationScope> LoadAuthorizationScopeAsync()
        {
            return await LoadAuthorizationScopeAsync(false, true, null, null, null);
        }
        public async System.Threading.Tasks.Task<AuthorizationScope> LoadAuthorizationScopeAsync(bool refresh, bool raisePropertyChanged, global::Sidvall.Data.FetchCriteria<global::Sidvall.AuthorizationManager.Data.Fields.AuthorizationScopeField, global::Sidvall.AuthorizationManager.Data.Relations.AuthorizationScopeRelation> criteria, string strategyContext, global::Sidvall.Data.ObjectParameterCollection objectParameters)
        {
            await global::Sidvall.AuthorizationManager.UI.SystemContext.Current.DataPortal.AuthorizationScopeResourceActionManager.LoadAuthorizationScopeAsync(this, refresh, raisePropertyChanged, criteria, strategyContext, objectParameters);

            return this.AuthorizationScope;
        }
        public AuthorizationScope LoadAuthorizationScope(AuthorizationScope item)
        {
            LoadInstanceField("AuthorizationScope", item, true, true, false);
            return item;
        }

        #endregion
        #region LoadInstanceField

        public void LoadInstanceField(string fieldName, object value, bool cascade, bool raisePropertyChanged, bool updateState)
        {
            global::Sidvall.AuthorizationManager.UI.SystemContext.Current.EntityFacade.AuthorizationScopeResourceActionManager.LoadInstanceField(this, fieldName, value, cascade, raisePropertyChanged, updateState);
        }

        #endregion
        #region AcceptChanges

        public void AcceptChanges()
        {
            global::Sidvall.AuthorizationManager.UI.SystemContext.Current.EntityFacade.AuthorizationScopeResourceActionManager.AcceptChanges(this);
        }

        #endregion
        #region Clone

        public AuthorizationScopeResourceAction Clone()
        {
            var copySettings = Sidvall.Data.CopySettings.Clone();
            return Copy(copySettings);
        }

        #endregion
        #region Copy

        public AuthorizationScopeResourceAction Copy()
        {
            return Copy(null);
        }
        public AuthorizationScopeResourceAction Copy(Sidvall.Data.CopySettings copySettings)
        {
            if (copySettings == null)
                copySettings = new Sidvall.Data.CopySettings();
            if (!Sidvall.Data.DataRowContextManager.IsValid(this, copySettings.RowFilter))
                return null;
            var item = new AuthorizationScopeResourceAction();
            Import(item, this, copySettings);
            return item;
        }

        #endregion
        #region Import

        public void Import(global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction item)
        {
            Import(item, null);
        }
        public void Import(global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction item, Sidvall.Data.CopySettings copySettings)
        {
            Import(this, item, copySettings);
        }
        partial void OnAfterImport(AuthorizationScopeResourceAction destination, global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction source, Sidvall.Data.CopySettings copySettings);
        private void Import(AuthorizationScopeResourceAction destination, global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction source, Sidvall.Data.CopySettings copySettings)
        {
            global::Sidvall.AuthorizationManager.UI.SystemContext.Current.EntityFacade.AuthorizationScopeResourceActionManager.Import(destination, source, copySettings);
            OnAfterImport(destination, source, copySettings);
        }
        partial void OnAfterImport(AuthorizationScopeResourceAction destination, AuthorizationScopeResourceAction source, Sidvall.Data.CopySettings copySettings);
        private void Import(AuthorizationScopeResourceAction destination, AuthorizationScopeResourceAction source, Sidvall.Data.CopySettings copySettings)
        {
            Import(destination, source as global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction, copySettings);
            OnAfterImport(destination, source, copySettings);
        }

        #endregion
        #region SaveItemAsync

        public async System.Threading.Tasks.Task<AuthorizationScopeResourceAction> SaveItemAsync()
        {
            return await global::Sidvall.AuthorizationManager.UI.SystemContext.Current.DataPortal.AuthorizationScopeResourceActionManager.SaveItemAsync(this);
        }
        public async System.Threading.Tasks.Task<AuthorizationScopeResourceAction> SaveItemAsync(Sidvall.Data.SaveMode mode)
        {
            return await global::Sidvall.AuthorizationManager.UI.SystemContext.Current.DataPortal.AuthorizationScopeResourceActionManager.SaveItemAsync(this, mode);
        }
        public async System.Threading.Tasks.Task<AuthorizationScopeResourceAction> SaveItemAsync(Sidvall.Data.SaveSettings settings)
        {
            return await global::Sidvall.AuthorizationManager.UI.SystemContext.Current.DataPortal.AuthorizationScopeResourceActionManager.SaveItemAsync(this, settings);
        }
        public async System.Threading.Tasks.Task<AuthorizationScopeResourceAction> SaveItemAsync(Sidvall.Data.SaveSettings settings, string strategyContext, global::Sidvall.Data.ObjectParameterCollection objectParameters)
        {
            return await global::Sidvall.AuthorizationManager.UI.SystemContext.Current.DataPortal.AuthorizationScopeResourceActionManager.SaveItemAsync(this, settings, strategyContext, objectParameters);
        }

        #endregion
        #region ValidateAsync

        public async System.Threading.Tasks.Task<Sidvall.Data.BusinessRuleCollection> ValidateAsync()
        {
            return await ValidateAsync((Sidvall.Data.ValidationSettings)null);
        }
        public async System.Threading.Tasks.Task<Sidvall.Data.BusinessRuleCollection> ValidateAsync(Sidvall.Data.ValidationSettings settings)
        {
            var context = new Sidvall.Business.ValidationContext(settings);
            await global::Sidvall.AuthorizationManager.UI.SystemContext.Current.EntityFacade.AuthorizationScopeResourceActionManager.ValidateAsync(this, context);
            await ValidateAsync(context);
            return context.AllBusinessRules;
        }
        partial void OnAfterValidate(Sidvall.Data.BusinessRuleCollection itemBusinessRules, Sidvall.Business.ValidationContext context);
        public async System.Threading.Tasks.Task ValidateAsync(Sidvall.Business.ValidationContext context)
        {
            var itemBusinessRules = new Sidvall.Data.BusinessRuleCollection();
            OnAfterValidate(itemBusinessRules, context);
            await context.TaskContext.DoTaskAsync();
            context.AllBusinessRules.AddRange(context.Settings.IncludeNotBrokenRules, itemBusinessRules);
            var businessRulesProvider = this as Sidvall.Data.IBusinessRulesProvider;
            if (businessRulesProvider != null)
                businessRulesProvider.BusinessRules.AddRange(context.Settings.IncludeNotBrokenRules, itemBusinessRules);
        }

        #endregion
        #region Initialize

        public void Initialize()
        {
            global::Sidvall.AuthorizationManager.UI.SystemContext.Current.EntityFacade.AuthorizationScopeResourceActionManager.Initialize(this);
        }
        public void Initialize(Sidvall.Data.InitializeSettings settings)
        {
            global::Sidvall.AuthorizationManager.UI.SystemContext.Current.EntityFacade.AuthorizationScopeResourceActionManager.Initialize(this, settings);
        }

        #endregion
        
        #region IAuthorizationScopeResourceAction Members

        global::Sidvall.AuthorizationManager.Data.ResourceAccessLevel global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction.AccessLevel
        {
            get
            {
                return this._AccessLevel;
            }
            set
            {
                this._AccessLevel = value;
            }
        }
        string global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction.Actions
        {
            get
            {
                return this._Actions;
            }
            set
            {
                this._Actions = value;
            }
        }
        long global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction.AuthorizationScopeId
        {
            get
            {
                return this._AuthorizationScopeId;
            }
            set
            {
                this._AuthorizationScopeId = value;
            }
        }
        System.Nullable<long> global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction.AuthorizationScopeResourceActionId
        {
            get
            {
                return this._AuthorizationScopeResourceActionId;
            }
            set
            {
                this._AuthorizationScopeResourceActionId = value;
            }
        }
        bool global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction.IsEnabled
        {
            get
            {
                return this._IsEnabled;
            }
            set
            {
                this._IsEnabled = value;
            }
        }
        string global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction.Resources
        {
            get
            {
                return this._Resources;
            }
            set
            {
                this._Resources = value;
            }
        }
        string global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction.SubActions
        {
            get
            {
                return this._SubActions;
            }
            set
            {
                this._SubActions = value;
            }
        }
        bool global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction.ValidForResourceActionItems
        {
            get
            {
                return this._ValidForResourceActionItems;
            }
            set
            {
                this._ValidForResourceActionItems = value;
            }
        }
        global::Sidvall.AuthorizationManager.Data.IAuthorizationScope global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction.AuthorizationScope
        {
            get
            {
                return this._AuthorizationScope;
            }
            set
            {
                UpdateChildProperty(this._AuthorizationScope, value);
                this._AuthorizationScope = value as AuthorizationScope;
            }
        }
        System.Collections.Generic.IEnumerable<global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceActionClaim> global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction.AuthorizationScopeResourceActionClaims
        {
            get
            {
                return this._AuthorizationScopeResourceActionClaims;
            }
        }
        void global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceAction.SetAuthorizationScopeResourceActionClaims(Sidvall.Data.IDataRowProvider<global::Sidvall.AuthorizationManager.Data.IAuthorizationScopeResourceActionClaim> items)
        {
            UpdateChildProperty(this._AuthorizationScopeResourceActionClaims, items);
            this._AuthorizationScopeResourceActionClaims = items as AuthorizationScopeResourceActionClaimCollection;
        }

        #endregion

        #endregion
        #region Constructors

        public AuthorizationScopeResourceAction()
        {
        }

        public AuthorizationScopeResourceAction(Sidvall.Data.DataRowState? dataRowState)
            : base(dataRowState)
        {
        }

        #endregion
    }
}